﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="GazOnDevDataSetinvoices2" targetNamespace="http://tempuri.org/GazOnDevDataSetinvoices2.xsd" xmlns:mstns="http://tempuri.org/GazOnDevDataSetinvoices2.xsd" xmlns="http://tempuri.org/GazOnDevDataSetinvoices2.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="GazOnConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="GazOnConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.GazOnConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Invoices2TableAdapter" GeneratorDataComponentClassName="Invoices2TableAdapter" Name="Invoices2" UserDataComponentName="Invoices2TableAdapter">
            <MainSource>
              <DbSource ConnectionRef="GazOnConnectionString (Web.config)" DbObjectName="GazOnDev.dbo.Invoices2" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Invoices2] WHERE (([id] = @Original_id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Invoices2] ([invoiceNumber], [C_to], [date], [carnum], [address], [transporter], [invoiceItems], [havetank], [_to], [tankNumber], [tankDesc], [note], [createdby]) VALUES (@invoiceNumber, @C_to, @date, @carnum, @address, @transporter, @invoiceItems, @havetank, @_to, @tankNumber, @tankDesc, @note, @createdby)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@invoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="invoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@C_to" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="C_to" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@carnum" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="carnum" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@transporter" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="transporter" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@invoiceItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="invoiceItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@havetank" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="havetank" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@_to" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="_to" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@tankNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="tankNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@tankDesc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="tankDesc" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@createdby" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="createdby" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT id, invoiceNumber, C_to, date, carnum, address, transporter, invoiceItems, havetank, [_to], tankNumber, tankDesc, note, createdby FROM dbo.Invoices2</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Invoices2] SET [invoiceNumber] = @invoiceNumber, [C_to] = @C_to, [date] = @date, [carnum] = @carnum, [address] = @address, [transporter] = @transporter, [invoiceItems] = @invoiceItems, [havetank] = @havetank, [_to] = @_to, [tankNumber] = @tankNumber, [tankDesc] = @tankDesc, [note] = @note, [createdby] = @createdby WHERE (([id] = @Original_id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@invoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="invoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@C_to" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="C_to" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@carnum" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="carnum" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@transporter" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="transporter" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@invoiceItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="invoiceItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@havetank" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="havetank" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@_to" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="_to" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@tankNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="tankNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@tankDesc" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="tankDesc" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="note" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@createdby" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="createdby" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="invoiceNumber" DataSetColumn="invoiceNumber" />
              <Mapping SourceColumn="C_to" DataSetColumn="C_to" />
              <Mapping SourceColumn="date" DataSetColumn="date" />
              <Mapping SourceColumn="carnum" DataSetColumn="carnum" />
              <Mapping SourceColumn="address" DataSetColumn="address" />
              <Mapping SourceColumn="transporter" DataSetColumn="transporter" />
              <Mapping SourceColumn="invoiceItems" DataSetColumn="invoiceItems" />
              <Mapping SourceColumn="havetank" DataSetColumn="havetank" />
              <Mapping SourceColumn="_to" DataSetColumn="_to" />
              <Mapping SourceColumn="tankNumber" DataSetColumn="tankNumber" />
              <Mapping SourceColumn="tankDesc" DataSetColumn="tankDesc" />
              <Mapping SourceColumn="note" DataSetColumn="note" />
              <Mapping SourceColumn="createdby" DataSetColumn="createdby" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="GazOnDevDataSetinvoices2" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="GazOnDevDataSetinvoices2" msprop:Generator_UserDSName="GazOnDevDataSetinvoices2">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Invoices2" msprop:Generator_TableClassName="Invoices2DataTable" msprop:Generator_TableVarName="tableInvoices2" msprop:Generator_TablePropName="Invoices2" msprop:Generator_RowDeletingName="Invoices2RowDeleting" msprop:Generator_RowChangingName="Invoices2RowChanging" msprop:Generator_RowEvHandlerName="Invoices2RowChangeEventHandler" msprop:Generator_RowDeletedName="Invoices2RowDeleted" msprop:Generator_UserTableName="Invoices2" msprop:Generator_RowChangedName="Invoices2RowChanged" msprop:Generator_RowEvArgName="Invoices2RowChangeEvent" msprop:Generator_RowClassName="Invoices2Row">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" type="xs:int" />
              <xs:element name="invoiceNumber" msprop:Generator_ColumnVarNameInTable="columninvoiceNumber" msprop:Generator_ColumnPropNameInRow="invoiceNumber" msprop:Generator_ColumnPropNameInTable="invoiceNumberColumn" msprop:Generator_UserColumnName="invoiceNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="C_to" msprop:Generator_ColumnVarNameInTable="columnC_to" msprop:Generator_ColumnPropNameInRow="C_to" msprop:Generator_ColumnPropNameInTable="C_toColumn" msprop:Generator_UserColumnName="C_to" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="date" msprop:Generator_ColumnVarNameInTable="columndate" msprop:Generator_ColumnPropNameInRow="date" msprop:Generator_ColumnPropNameInTable="dateColumn" msprop:Generator_UserColumnName="date" type="xs:dateTime" minOccurs="0" />
              <xs:element name="carnum" msprop:Generator_ColumnVarNameInTable="columncarnum" msprop:Generator_ColumnPropNameInRow="carnum" msprop:Generator_ColumnPropNameInTable="carnumColumn" msprop:Generator_UserColumnName="carnum" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="address" msprop:Generator_ColumnVarNameInTable="columnaddress" msprop:Generator_ColumnPropNameInRow="address" msprop:Generator_ColumnPropNameInTable="addressColumn" msprop:Generator_UserColumnName="address" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="transporter" msprop:Generator_ColumnVarNameInTable="columntransporter" msprop:Generator_ColumnPropNameInRow="transporter" msprop:Generator_ColumnPropNameInTable="transporterColumn" msprop:Generator_UserColumnName="transporter" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="invoiceItems" msprop:Generator_ColumnVarNameInTable="columninvoiceItems" msprop:Generator_ColumnPropNameInRow="invoiceItems" msprop:Generator_ColumnPropNameInTable="invoiceItemsColumn" msprop:Generator_UserColumnName="invoiceItems" type="xs:int" minOccurs="0" />
              <xs:element name="havetank" msprop:Generator_ColumnVarNameInTable="columnhavetank" msprop:Generator_ColumnPropNameInRow="havetank" msprop:Generator_ColumnPropNameInTable="havetankColumn" msprop:Generator_UserColumnName="havetank" type="xs:boolean" minOccurs="0" />
              <xs:element name="_to" msprop:Generator_ColumnVarNameInTable="column_to" msprop:Generator_ColumnPropNameInRow="_to" msprop:Generator_ColumnPropNameInTable="_toColumn" msprop:Generator_UserColumnName="_to" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="tankNumber" msprop:Generator_ColumnVarNameInTable="columntankNumber" msprop:Generator_ColumnPropNameInRow="tankNumber" msprop:Generator_ColumnPropNameInTable="tankNumberColumn" msprop:Generator_UserColumnName="tankNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="tankDesc" msprop:Generator_ColumnVarNameInTable="columntankDesc" msprop:Generator_ColumnPropNameInRow="tankDesc" msprop:Generator_ColumnPropNameInTable="tankDescColumn" msprop:Generator_UserColumnName="tankDesc" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="250" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="note" msprop:Generator_ColumnVarNameInTable="columnnote" msprop:Generator_ColumnPropNameInRow="note" msprop:Generator_ColumnPropNameInTable="noteColumn" msprop:Generator_UserColumnName="note" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="createdby" msprop:Generator_ColumnVarNameInTable="columncreatedby" msprop:Generator_ColumnPropNameInRow="createdby" msprop:Generator_ColumnPropNameInTable="createdbyColumn" msprop:Generator_UserColumnName="createdby" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Invoices2" />
      <xs:field xpath="mstns:id" />
    </xs:unique>
  </xs:element>
</xs:schema>